package com.nondo.dean.saprfc.common;

import com.nondo.dean.common.tool.PropertiesTools;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;

public class BaseBean {

    private static final Logger logger = LoggerFactory.getLogger(BaseBean.class);
    public static String basePath = ".";
    private static Properties prop = null;
    private static FileInputStream inputFile = null;
    private static FileOutputStream outputFile = null;

    public BaseBean() {
    }

    public static synchronized Properties loadFile(String filename) {
        return PropertiesTools.getProperties(filename);
    }

    public static String getPropValue(String filename, String key) {
        return loadFile(filename).getProperty(key);
    }

}
